package com.sskj.api.vo.srs;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(description = "客户端会话信息")
@Data
public class ClientInfo {

    @Schema(description = "客户端唯一ID")
    private String id;

    @Schema(description = "IP地址")
    private String ip;

    @Schema(description = "虚拟主机名称")
    private String vhost;

    @Schema(description = "流名称")
    private String stream;

    @Schema(description = "播放页来源URL（主要用于Flash）")
    private String pageUrl;

    @Schema(description = "Flash播放器URL（已较少使用")
    private String swfUrl;

    @Schema(description = "RTMP连接的完整地址")
    private String tcUrl;

    @Schema(description = "客户端请求的流路径")
    private String url;

    @Schema(description = "类型[publisher:推流者|subscriber:观看者]")
    private String type;

    @Schema(description = "是否是推流端")
    private Boolean publish;

    @Schema(description = "是否正在转发数据")
    private Boolean deliver;

    @Schema(description = "存货时间")
    private Float alive;
}
